
import type { addAdministratorroleParams, AdministratorroleDataFace, AdministratorroleListParams, menuListFace, menuListParams } from "../type/administratorrole"
import http from "../utils/request"

// 角色列表接口
export const AdministratorroleroleList=(params?:AdministratorroleListParams)=>http.get<AdministratorroleDataFace>('administratorrole/list',params)
// 删除角色接口
export const deleteAdministratorrolerole=(id:number)=>http.get<null>('administratorrole/delete',{id})
// 获取权限接口
export const menuList = (params?:menuListParams) =>  http.get<menuListFace>('menu/list',params)
// 添加角色接口
export const addAdministratorrolerole=(data:addAdministratorroleParams)=>http.post<null>('administratorrole/add',data)